package com.sanno.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 用户(SncUserLogin)实体类
 *
 * @author makejava
 * @since 2021-12-17 15:17:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("snc_user_login")
public class SncUserLogin implements Serializable {
    private static final long serialVersionUID = -65490757470239545L;
    /**
     * 用户id
     */
    @TableId(value = "Id",type = IdType.AUTO)
    private Integer id;
    /**
     * 用户电话
     */
    private String phone;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 用户姓名
     */
    private String name;
    /**
     * 令牌
     */
    private String token;
    /**
     * 是否是管理员
     */
    private Integer isAdmin;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 登录时间
     */
    private Date tryLoginTimes;
    /**
     * 备注
     */
    private String remark;
    /**
     * Ip地址
     */
    private String ip;

    private SccRole sccRole;

    private List<SccDrugstore> sccDrugstoreList;

    private Integer roleId;
    private String roleName;

    private Integer storeId;
    private String storeName;
    private String storeCode;
    private String provinceCode;
    private String province;
    private String cityCode;
    private String city;
    private String countyCode;
    private String county;
    private String addressDetail;
}

